package com.tequila.core.dao;

import com.tequila.domain.dto.OrderDto;
import com.tequila.domain.entity.Order;
import com.tequila.domain.query.OrderQuery;

import java.util.List;

public interface OrderDao {
    Order queryById(Long id);

    List<OrderDto> queryByIdList(List<Long> idList);

    List<OrderDto> queryListByParam(OrderQuery query);

    List<OrderDto> queryPageListByParam(OrderQuery query);

    int queryPageCountByParam(OrderQuery query);

    int insert(Order entity);

    int insertSelective(Order entity);

    int updateById(Order param);

    int updateSelectiveById(Order param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}